/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tlp.ucsur.conexion;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBConnection {


  public static Connection getConnection() {
    try {
      Class.forName("com.mysql.jdbc.Driver");
      String urlJdbc = "jdbc:mysql://localhost:3306/sysreserv";
      String username = "root";
      String password="123456";
      Connection conn = DriverManager.getConnection(urlJdbc, username, password);
      return conn;

    } catch (Exception ex) {
      ex.printStackTrace();
    }
    return null;
  }
}
